package com.guoguo.enums;

/**
 * Created by Administrator on 2017/9/12 0012.
 */
public enum PayEnum {
    PAY_SUCCESS(200, "解锁成功！"),
    PAY_ARGS_ERROR(201, "参数错误！"),
    PAY_POINT_LACK(202, "解锁失败：积分不够！"),
    PAY_ORDER_ERROR(203, "解锁失败：订单创建失败！"),
    PAY_FLOW_ERROR(204, "解锁失败：消费明细创建失败！"),
    PAY_BUYS_ERROR(205, "解锁失败：解锁记录创建失败！"),
    PAY_USER_EXT_ERROR(206, "解锁失败：用户积分扣除失败！"),
    PAY_PAYMENT_TYPE(207, "解锁失败：支付方式错误！"),

    PAY_TYPE_RECHARGE(1, "积分充值：现金充值积分"),
    PAY_TYPE_MEMBER(2, "现金充值：现金购买会员身份"),
    PAY_TYPE_POINT(3, "积分消费：积分解锁"),
    PAY_TYPE_MONEY(4, "现金消费：会员身份购买");

    private int id;
    private String value;

    PayEnum(int id, String value) {
        this.id = id;
        this.value = value;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
